<div class="donvis view">
<h2><?php  __('Donvi');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Madv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['madv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tendv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['tendv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diachi'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvi['Donvi']['diachi']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Donvi', true), array('action' => 'edit', $donvi['Donvi']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Donvi', true), array('action' => 'delete', $donvi['Donvi']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $donvi['Donvi']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Donvis', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Donvi', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Chitieudvs', true), array('controller' => 'chitieudvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Chitieudv', true), array('controller' => 'chitieudvs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Diemchuans', true), array('controller' => 'diemchuans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Diemchuan', true), array('controller' => 'diemchuans', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Kehoaches', true), array('controller' => 'kehoaches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Kehoach', true), array('controller' => 'kehoaches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Nhanviens', true), array('controller' => 'nhanviens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Nhanvien', true), array('controller' => 'nhanviens', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Thuocdvs', true), array('controller' => 'thuocdvs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Thuocdv', true), array('controller' => 'thuocdvs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Chitieudvs');?></h3>
	<?php if (!empty($donvi['Chitieudv'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Kehoach Id'); ?></th>
		<th><?php __('Hanghoa Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Chitieudv'] as $chitieudv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $chitieudv['id'];?></td>
			<td><?php echo $chitieudv['donvi_id'];?></td>
			<td><?php echo $chitieudv['kehoach_id'];?></td>
			<td><?php echo $chitieudv['hanghoa_id'];?></td>
			<td><?php echo $chitieudv['soluong'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'chitieudvs', 'action' => 'view', $chitieudv['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'chitieudvs', 'action' => 'edit', $chitieudv['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'chitieudvs', 'action' => 'delete', $chitieudv['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $chitieudv['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Chitieudv', true), array('controller' => 'chitieudvs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Diemchuans');?></h3>
	<?php if (!empty($donvi['Diemchuan'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hanghoa Id'); ?></th>
		<th><?php __('Kehoach Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th><?php __('Diem'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Diemchuan'] as $diemchuan):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $diemchuan['id'];?></td>
			<td><?php echo $diemchuan['hanghoa_id'];?></td>
			<td><?php echo $diemchuan['kehoach_id'];?></td>
			<td><?php echo $diemchuan['donvi_id'];?></td>
			<td><?php echo $diemchuan['soluong'];?></td>
			<td><?php echo $diemchuan['diem'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'diemchuans', 'action' => 'view', $diemchuan['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'diemchuans', 'action' => 'edit', $diemchuan['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'diemchuans', 'action' => 'delete', $diemchuan['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $diemchuan['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Diemchuan', true), array('controller' => 'diemchuans', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Kehoaches');?></h3>
	<?php if (!empty($donvi['Kehoach'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Thoigian Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Kehoach'] as $kehoach):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $kehoach['id'];?></td>
			<td><?php echo $kehoach['thoigian_id'];?></td>
			<td><?php echo $kehoach['donvi_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'kehoaches', 'action' => 'view', $kehoach['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'kehoaches', 'action' => 'edit', $kehoach['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'kehoaches', 'action' => 'delete', $kehoach['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $kehoach['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Kehoach', true), array('controller' => 'kehoaches', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Nhanviens');?></h3>
	<?php if (!empty($donvi['Nhanvien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Manv'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Chucdanh Id'); ?></th>
		<th><?php __('Tennv'); ?></th>
		<th><?php __('Sdt'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Diachi'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Nhanvien'] as $nhanvien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $nhanvien['id'];?></td>
			<td><?php echo $nhanvien['manv'];?></td>
			<td><?php echo $nhanvien['donvi_id'];?></td>
			<td><?php echo $nhanvien['chucdanh_id'];?></td>
			<td><?php echo $nhanvien['tennv'];?></td>
			<td><?php echo $nhanvien['sdt'];?></td>
			<td><?php echo $nhanvien['email'];?></td>
			<td><?php echo $nhanvien['diachi'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'nhanviens', 'action' => 'view', $nhanvien['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'nhanviens', 'action' => 'edit', $nhanvien['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'nhanviens', 'action' => 'delete', $nhanvien['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $nhanvien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Nhanvien', true), array('controller' => 'nhanviens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Thuocdvs');?></h3>
	<?php if (!empty($donvi['Thuocdv'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Donvi Id'); ?></th>
		<th><?php __('Donvi'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvi['Thuocdv'] as $thuocdv):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $thuocdv['id'];?></td>
			<td><?php echo $thuocdv['donvi_id'];?></td>
			<td><?php echo $thuocdv['donvi'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'thuocdvs', 'action' => 'view', $thuocdv['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'thuocdvs', 'action' => 'edit', $thuocdv['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'thuocdvs', 'action' => 'delete', $thuocdv['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $thuocdv['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Thuocdv', true), array('controller' => 'thuocdvs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
